Optimal. Leaf size=150 \[ \frac {2 (3 A+5 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 b^2 d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 B \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {b \sec (c+d x)}}{3 b^3 d}+\frac {2 B \sin (c+d x)}{3 b^2 d \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{5 d (b \sec (c+d x))^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 150, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {4132, 3854,
3856, 2720, 4130, 2719} \begin {gather*} \frac {2 (3 A+5 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 b^2 d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{5 d (b \sec (c+d x))^{5/2}}+\frac {2 B \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {b \sec (c+d x)}}{3 b^3 d}+\frac {2 B \sin (c+d x)}{3 b^2 d \sqrt {b \sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2719
Rule 2720
Rule 3854
Rule 3856
Rule 4130
Rule 4132
Rubi steps
\begin {align*} \int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{(b \sec (c+d x))^{5/2}} \, dx &=\frac {B \int \frac {1}{(b \sec (c+d x))^{3/2}} \, dx}{b}+\int \frac {A+C \sec ^2(c+d x)}{(b \sec (c+d x))^{5/2}} \, dx\\ &=\frac {2 B \sin (c+d x)}{3 b^2 d \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{5 d (b \sec (c+d x))^{5/2}}+\frac {B \int \sqrt {b \sec (c+d x)} \, dx}{3 b^3}+\frac {(3 A+5 C) \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx}{5 b^2}\\ &=\frac {2 B \sin (c+d x)}{3 b^2 d \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{5 d (b \sec (c+d x))^{5/2}}+\frac {(3 A+5 C) \int \sqrt {\cos (c+d x)} \, dx}{5 b^2 \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {\left (B \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{3 b^3}\\ &=\frac {2 (3 A+5 C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 b^2 d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}+\frac {2 B \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {b \sec (c+d x)}}{3 b^3 d}+\frac {2 B \sin (c+d x)}{3 b^2 d \sqrt {b \sec (c+d x)}}+\frac {2 A \tan (c+d x)}{5 d (b \sec (c+d x))^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 1.30, size = 169, normalized size = 1.13 \begin {gather*} \frac {e^{-i d x} \sqrt {b \sec (c+d x)} (\cos (d x)+i \sin (d x)) \left (10 B \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )-2 i (3 A+5 C) e^{i (c+d x)} \sqrt {1+e^{2 i (c+d x)}} \, _2F_1\left (\frac {1}{2},\frac {3}{4};\frac {7}{4};-e^{2 i (c+d x)}\right )+\cos (c+d x) (6 i (3 A+5 C)+10 B \sin (c+d x)+3 A \sin (2 (c+d x)))\right )}{15 b^3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 23.66, size = 766, normalized size = 5.11
method | result | size |
default | \(-\frac {2 \left (-9 i A \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-15 i C \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+9 i A \EllipticE \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}+15 i C \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticE \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )+9 i A \cos \left (d x +c \right ) \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticE \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )+15 i C \EllipticE \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \sin \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-15 i C \sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )-5 i B \sin \left (d x +c \right ) \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}-5 i B \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right ) \cos \left (d x +c \right ) \sin \left (d x +c \right )-9 i A \sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \EllipticF \left (\frac {i \left (-1+\cos \left (d x +c \right )\right )}{\sin \left (d x +c \right )}, i\right )+3 A \left (\cos ^{4}\left (d x +c \right )\right )+5 B \left (\cos ^{3}\left (d x +c \right )\right )+6 A \left (\cos ^{2}\left (d x +c \right )\right )+15 C \left (\cos ^{2}\left (d x +c \right )\right )-9 A \cos \left (d x +c \right )-5 B \cos \left (d x +c \right )-15 C \cos \left (d x +c \right )\right )}{15 d \cos \left (d x +c \right )^{3} \left (\frac {b}{\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \sin \left (d x +c \right )}\) | \(766\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.51, size = 176, normalized size = 1.17 \begin {gather*} \frac {-5 i \, \sqrt {2} B \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + 5 i \, \sqrt {2} B \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 3 \, \sqrt {2} {\left (-3 i \, A - 5 i \, C\right )} \sqrt {b} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - 3 \, \sqrt {2} {\left (3 i \, A + 5 i \, C\right )} \sqrt {b} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) + 2 \, {\left (3 \, A \cos \left (d x + c\right )^{2} + 5 \, B \cos \left (d x + c\right )\right )} \sqrt {\frac {b}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{15 \, b^{3} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}}{\left (b \sec {\left (c + d x \right )}\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\left (\frac {b}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________